package exception;

public class ThrowsDemo {
    public static void main(String[] args) {
 Person zs=new Person();
  try {
      zs.setAge(101);
  }
  catch(IllegalAgeException E){
      E.printStackTrace();
      //System.out.println(E.getStackTrace());
  }
  System.out.println("这个人的年龄"+zs.getAge()+"睡了");
    }
}
